home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ MS Intellipoint 2.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  2.8 KB  |  98 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Hardware\Mouse\MS Intellipoint"
  5. "NAME"="Show/Hide Control Panel pages"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Show "Activities" page"
  8. "TEXT 2"="Show "Buttons" page"
  9. "TEXT 3"="Show "Pointer Options" page"
  10. "TEXT 4"="Show "Wheel" page"
  11. "DESCRIPTION 1"="When you install Microsoft's IntelliPoint, your Mouse Properties applet in Control Panel acquires 4 new pages. If you want, you can disable these."
  12. "DESCRIPTION 2"="Note: Disabling all pages will revert the Mouse Properties dialog back to its 3 default pages."
  13. "COMMENT 1"="Thanks to CptSiskoX for suggesting that I download the IntelliPoint drivers, despite the fact I use a Logitech mouse. Ah well, it works..."
  14. "VERSION"="1.0"
  15. "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved."
  17.  
  18. 'Declaration of some constants
  19. sP="HKLM\Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\"
  20. sP1="Activities\@"
  21. sP2="Buttons\@"
  22. sP3="Wheel\@"
  23. sP4="PointerOptions\@"
  24.  
  25. 'Called when the Plugin is started
  26. SUB Plugin_Initialize
  27.  s=RegReadValue(sP & sP1)
  28.  if s="{F3D2DFC1-315B-11CE-BEA8-00AA0044301B}" then
  29.   Call SetUIElement(1,true)
  30.  end if
  31.  
  32.  s=RegReadValue(sP & sP2)
  33.  if s="{F3D2DFC2-315B-11CE-BEA8-00AA0044301B}" then
  34.   Call SetUIElement(2,true)
  35.  end if
  36.  
  37.  s=RegReadValue(sP & sP3)
  38.  if s="{F3D2DFC3-315B-11CE-BEA8-00AA0044301B}" then
  39.   Call SetUIElement(3,true)
  40.  end if
  41.  
  42.  s=RegReadValue(sP & sP4)
  43.  if s="{F3D2DFC4-315B-11CE-BEA8-00AA0044301B}" then
  44.   Call SetUIElement(4,true)
  45.  end if
  46. END SUB
  47.  
  48. 'Called when the Plugin should validate the Data the user has entered
  49. SUB Plugin_CheckData(ElementIndex)
  50. END SUB
  51.  
  52. 'Called when the Plugin should apply the changes
  53. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  54.  s=GetUIElement(1)
  55.  if s=true then
  56.   Call RegWriteValue(sP & sP1,"{F3D2DFC1-315B-11CE-BEA8-00AA0044301B}",1)
  57.  else
  58.   u=RegValueExists(sp & sP1)
  59.   if u=true then
  60.    Call RegDeleteValue(sP & sP1)
  61.   end if
  62.  end if
  63.  
  64.  s=GetUIElement(2)
  65.  if s=true then
  66.   Call RegWriteValue(sP & sP2,"{F3D2DFC2-315B-11CE-BEA8-00AA0044301B}",1)
  67.  else
  68.   t=RegValueExists(sp & sP2)
  69.   if t=true then
  70.    Call RegDeleteValue(sP & sP2)
  71.   end if
  72.  end if
  73.  
  74.  s=GetUIElement(3)
  75.  if s=true then
  76.   Call RegWriteValue(sP & sP3,"{F3D2DFC3-315B-11CE-BEA8-00AA0044301B}",1)
  77.  else
  78.   t=RegValueExists(sP & sP3)
  79.   if t=true then
  80.    Call RegDeleteValue(sP & sP3)
  81.   end if
  82.  end if
  83.  
  84.  s=GetUIElement(4)
  85.  if s=true then
  86.   Call RegWriteValue(sP & sP4,"{F3D2DFC4-315B-11CE-BEA8-00AA0044301B}",1)
  87.  else
  88.   t=RegValueExists(sp & sP4)
  89.   if t=true then
  90.    Call RegDeleteValue(sP & sP4)
  91.   end if
  92.  end if
  93. END SUB
  94.  
  95. 'Called when the Plugin is about to be removed from memory
  96. SUB Plugin_Terminate
  97. END SUB
  98.